/**
 * Copyright (c) 2012 Nokia Corporation. 
 */

package com.nokia.example.tictactoe.ui;


import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

/**
 * About/info view.
 */
public class AboutView extends Form {
	// Constants
	private static final String TITLE = "Tic-Tac-Toe over Sockets 1.0";
	private static final String INFO_TEXT =
			"A Nokia example application demonstrating the use of sockets for "
			+ "peer-to-peer communication. Datagrams are used for automatic "
			+ "peer discovery and the actual communication during the game "
			+ "is managed via TCP sockets.\n\n"
			+ "Usage: Make sure the devices are connected to the same wireless "
			+ "network, launch the application and select a two player game. "
			+ "The devices should automatically discover each other and "
			+ "establish the connection.";
	
	// Members
	private StringItem _stringItem = null;
	
	/**
	 * Constructor.
	 */
	public AboutView() {
		super("About");
		_stringItem = new StringItem(TITLE, INFO_TEXT);
		append(_stringItem);
	}
}
